package com.lys.blog.service;


import com.lys.blog.vo.Result;
import com.lys.blog.vo.params.LoginParam;
import org.springframework.transaction.annotation.Transactional;

//增加事务
@Transactional
public interface LoginService {

    /**
     * 登录功能
     * @param loginParam
     * @return
     */
    Result login(LoginParam loginParam);

    /**
     * 退出登录
     * @return
     */
    Result logout(String token);

    Result register(LoginParam loginParam);
}
